package com.ruoyi.airsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.airsystem.mapper.AirDevicesMapper;
import com.ruoyi.airsystem.domain.AirDevices;
import com.ruoyi.airsystem.service.IAirDevicesService;

/**
 * 设备管理Service业务层处理

 * @date 2025-04-18
 */
@Service
public class AirDevicesServiceImpl implements IAirDevicesService 
{
    @Autowired
    private AirDevicesMapper airDevicesMapper;

    /**
     * 查询设备管理
     * 
     * @param deviceId 设备管理主键
     * @return 设备管理
     */
    @Override
    public AirDevices selectAirDevicesByDeviceId(Long deviceId)
    {
        return airDevicesMapper.selectAirDevicesByDeviceId(deviceId);
    }

    /**
     * 查询设备管理列表
     * 
     * @param airDevices 设备管理
     * @return 设备管理
     */
    @Override
    public List<AirDevices> selectAirDevicesList(AirDevices airDevices)
    {
        return airDevicesMapper.selectAirDevicesList(airDevices);
    }

    /**
     * 新增设备管理
     * 
     * @param airDevices 设备管理
     * @return 结果
     */
    @Override
    public int insertAirDevices(AirDevices airDevices)
    {
        return airDevicesMapper.insertAirDevices(airDevices);
    }

    /**
     * 修改设备管理
     * 
     * @param airDevices 设备管理
     * @return 结果
     */
    @Override
    public int updateAirDevices(AirDevices airDevices)
    {
        return airDevicesMapper.updateAirDevices(airDevices);
    }

    /**
     * 批量删除设备管理
     * 
     * @param deviceIds 需要删除的设备管理主键
     * @return 结果
     */
    @Override
    public int deleteAirDevicesByDeviceIds(Long[] deviceIds)
    {
        return airDevicesMapper.deleteAirDevicesByDeviceIds(deviceIds);
    }

    /**
     * 删除设备管理信息
     * 
     * @param deviceId 设备管理主键
     * @return 结果
     */
    @Override
    public int deleteAirDevicesByDeviceId(Long deviceId)
    {
        return airDevicesMapper.deleteAirDevicesByDeviceId(deviceId);
    }
}
